package com.example.simplerpc.common.protocol;

import lombok.Data;

import java.io.Serializable;

/**
 * @Classname: RpcResponse
 * @Description:
 * @Author: Stonffe
 * @Date: 2022/12/19 10:57
 */
@Data
public class RpcResponse implements Serializable {
    private static final long serialVersionUID = -4317845782629589997L;
    private RpcStatus status;
    private Object returnValue;
    private Exception exception;

    public RpcResponse(RpcStatus status) {
        this.status = status;
    }
}
